package com.Business.service;

import com.Business.dao.BuildingDao;
import com.Pojo.Building;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by XingYang on 2019/3/14.
 */
@Service
public class BuildingServiceImpl implements BuildingService {
    @Autowired
    BuildingDao buildingDao;

    @Override
    public void AddBuilding(Building building) {
            buildingDao.AddBuilding(building);
    }

    @Override
    public Building getBuildingById(String id) {
        return buildingDao.getBuildingById(id);
    }

    @Override
    public List<Building> getBuildingsByProjectNo(String projectNo) {
        return buildingDao.getBuildingsByProjectNo(projectNo);
    }

    @Override
    public List<Map> getBuildingsInfByProjectNo(String projectNo) {
        return buildingDao.getBuildingsInfByProjectNo(projectNo);
    }

    @Override
    public void BindProject(Map map) {
        buildingDao.BindProject(map);
    }

    @Override
    public Map queryBuildingByBid(String bid) {
        return buildingDao.queryBuildingByBid(bid);
    }

    @Override
    public void updateBuildingByBid(Map map) {
        buildingDao.updateBuildingByBid(map);
    }
}
